package com.zky.group.grouppintuan.feign;

import com.zky.common.entity.HeadEntity;
import com.zky.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("group-head")
@RequestMapping("grouphead/head")
public interface HeadFeignService {


    /**
     * 列表
     */
    @RequestMapping("/list")
//    @RequiresPermissions("grouphead:head:list")
    public R list(@RequestParam Map<String, Object> params);


    /**
     * 信息
     */
    @RequestMapping("/info/{groupBookingId}")
//    @RequiresPermissions("grouphead:head:info")
    public R info(@PathVariable("groupBookingId") Long groupBookingId);

    /**
     * 保存
     */
    @RequestMapping("/save")
//    @RequiresPermissions("grouphead:head:save")
    public R save(@RequestBody HeadEntity head);

    /**
     * 修改
     */
    @RequestMapping("/update")
//    @RequiresPermissions("grouphead:head:update")
    public R update(@RequestBody HeadEntity head);
    /**
     * 删除
     */
    @RequestMapping("/delete")
//    @RequiresPermissions("grouphead:head:delete")
    public R delete(@RequestBody Long[] groupBookingIds);


}
